package com.zzyang.aop.demo.interceptor;


/**
 * 拦截器
 *
 * @author zhuoziyang
 * @date 2021/5/16 22:31
 */
public interface Interceptor {

    /**
     * 之前拦截
     *
     * @param invocation
     */
    void before(Invocation invocation);

    /**
     * 之后拦截
     *
     * @param invocation
     * @return
     */
    Object after(Invocation invocation);

}
